package design.pattern.SimpleFactory;

/**
 * 乘法类
 */
public class OperationMul extends Operation {
    OperationMul(){}

    OperationMul(double numberA, double numberB){
        super(numberA,numberB);
    }

    @Override
    double getResult() {
        return getNumberA() * getNumberB();
    }
}
